package com.proj.entities;


//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Id;
//import javax.persistence.Table;
//import javax.persistence.UniqueConstraint;
import java.io.Serializable;
import java.util.Date;

//@Entity
//@Table(name = "user", uniqueConstraints = @UniqueConstraint(columnNames = "username"))
public final class UserEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

//    @Id
//    @Column(name = "id")
    private long id;

//    @Column(name = "username", nullable = false, updatable = false)
    private String userName;

//    @Column(name = "firstname", nullable = true, updatable = true)
    private String firstName;

//    @Column(name = "lastname", nullable = true, updatable = true)
    private String lastName;

//    @Column(name = "address", nullable = true, updatable = true)
    private String address;

    private Date createdOn;

    private Date updatedOn;

    private String phone;
    private String email;
    private String city;
    private int age;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getFirstName()
    {
        return firstName;
    }

    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public String getLastName()
    {
        return lastName;
    }

    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public Date getCreatedOn()
    {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn)
    {
        this.createdOn = createdOn;
    }

    public Date getUpdatedOn()
    {
        return updatedOn;
    }

    public void setUpdatedOn(Date updatedOn)
    {
        this.updatedOn = updatedOn;
    }

    public String getPhone() {
        
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
